﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace CTIPay
{
    public partial class FrmLowerCase : Form
    {
        public FrmLowerCase()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string source = textBox1.Text.Trim();
            string[] sourceArray = source.Split(new string[] { System.Environment.NewLine }, StringSplitOptions.None);

            foreach(string line in sourceArray)
            {
                string lineTemp = line.Trim();
                string prefix = lineTemp.Substring(1, 1).ToLower();
                this.textBox2.Text += "<" + prefix + lineTemp.Substring(2, lineTemp.Length - 2);
                this.textBox2.Text += System.Environment.NewLine;
            }
        }
    }
}
